<?php
require_once 'const/DBConst.php';
?>
<html>
    <head>
        <title>orders</title>
        <link href="/css/beauty/reset.css" rel="stylesheet" type="text/css" />
        <link href="/css/beauty/master.css" rel="stylesheet" type="text/css" />
        <link href="/css/beauty/mall.css" rel="stylesheet" type="text/css" />
        <link href="/css/beauty/myhome.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/jscript/default/js.js"></script>
        <script type="text/javascript" src="/jscript/comm/divwindows.js"></script>
    </head>
    <body>
        <div id="main-content">
            <div class="item-list" id="divUserHomeR">
                <div class="item-list-bd" id="item-list-bd-order">
                    <table id="J_ListTable">
                        <thead>
                            <tr>
                                <th class="item-list-col0"> </th>
                                <th class="item-list-col1 item">订单号</th>
                                <th class="item-list-col2 num">产品名称</th>
                                <th class="item-list-col3 trouble">数量</th>
                                <th class="item-list-col4 contact">单价</th>
                                <th class="item-list-col5 trade-status">总价</th>
                                <th class="item-list-col6 contact">订购人Email</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody id="all_order" bgcolor="#F6F6F6">
                            <?php foreach ($this->orders as $order): ?>
                                <tr>
                                    <td> </td>
                                    <td class="item"><?php echo $order["ID"] ?></td>
                                    <td class="num"><?php echo $order[C_NAME] ?></td>
                                    <td class="trouble"><?php echo $order[C_NUM] ?></td>
                                    <td class="contact"><?php echo $order[C_PRICE] ?></td>
                                    <td class="trade-status"><?php echo $order[C_NUM] * $order[C_PRICE] ?></td>
                                    <td class="contact"><?php echo $order[C_EMAIL] ?></td>
                                    <td></td>
                                </tr>
                            <?php endforeach; ?>

                        </tbody>

                    </table>
                </div>
            </div>
        </div>
    </body>
</html>
